<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title><?php if(isset($title)){ echo $title; } else { echo "Trang quản trị"; } ?></title>
        <meta charset="UTF-8">
        <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <link href="<?php echo base_url("application/views/default/admin"); ?>/css/bootstrap.css" rel="stylesheet" type="text/css">
        <link href="<?php echo base_url("application/views/default/admin"); ?>/css/style.css" rel="stylesheet" type="text/css" >
          <link href="<?php echo base_url("application/views/default/admin"); ?>/css/styles.css" rel="stylesheet" type="text/css" >
        <script src="<?php echo base_url("application/views/default/admin"); ?>/js/admin.js"></script>
        <?php
if(isset($js)){
    foreach ($js as $value) {
       echo '<script src="'.base_url().'styles/js/'.$value.'" type="text/javascript"></script>';
    }
}
?>
    </head>
<body>
      <div class="container">
        <div class="menu ">

          <nav class="navbar navbar-inverse" role="navigation">

            <div class="navbar-header">
                <img src="<?php echo base_url("styles/css/img/logo_zing_trithuc.png"); ?>" alt="logo" class="img-responsive" width="110px">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
              <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="glyphicon glyphicon-user"></b> <?php echo $username; ?> <b class="caret"></b></a>
                  <ul class="dropdown-menu">
                    <li><a href="#">Thông tin cá nhân</a></li>
                    <li><a href="<?php echo base_url("admin/logout"); ?>">Ðang Xuất</a></li>
                  </ul>
                </li>
              </ul>
            </div><!-- /.navbar-collapse -->
          </nav>
        </div><!-- end  .menu-->
        <div class="col-md-3 sidebar-menu">
          <div class="panel-group" id="accordion">
            <div class="panel panel-default">
              <div class="panel-heading">
                <h4 class="panel-title">
                  <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
                    Danh mục menu
                  </a>
                </h4>
              </div>
              <div id="collapseOne" class="panel-collapse collapse in">
                <div class="panel-body">
                  <ul>
                    <li><a href=""><b class="glyphicon glyphicon-user"></b> Chuyên mục</a>
                        <ul>
                            <li><a href="<?php echo base_url(); ?>admin#" id='qlchuyenmuc'><b class="glyphicon glyphicon-plus"></b>Quản lý chuyên mục</a></li>
                            <li><a href="<?php echo base_url(); ?>admin#" id='qlsubchuyenmuc'><b class="glyphicon glyphicon-plus"></b>Quản lý chuyên mục con</a></li>
                        </ul>
                    </li>
                    <li><a href="<?php echo base_url(); ?>/qlquangcao"><b class="glyphicon glyphicon-shopping-cart"></b> Quản lý quảng cáo</a></li>
                    <li><a href="<?=site_url('topic')?>"><b class="glyphicon glyphicon-pencil"></b>Tin tức</a>
                       
                    </li>
                    <li><a href="qltintuc"><b class="glyphicon glyphicon-wrench"></b>Quản lý tin tức</a></li>
                  </ul>
                </div>
              </div>
            </div>
          </div>
        </div><!-- end menu-->